adc9c4c24407ff977cde46daa72f84b2c710b832,src/main/java/com/github/games647/flexiblelogin/listener/PreventListener.java,PreventListener,onBlockInteract,#InteractBlockEvent#,112

Before Change



    @Listener(ignoreCancelled = true)
    public void onBlockInteract(InteractBlockEvent interactBlockEvent) {
        Optional<Player> playerOptional = interactBlockEvent.getCause().first(Player.class);
        if (playerOptional.isPresent()) {
            checkAllowance(interactBlockEvent, playerOptional.get());
        }
    }

After Change



    @Listener(ignoreCancelled = true)
    public void onBlockInteract(InteractBlockEvent interactBlockEvent) {
        checkAllowance(interactBlockEvent, interactBlockEvent.getCause());
    }

    @Listener(ignoreCancelled = true)